export interface loginForm {
    username: string,
    password: string
}

interface dataType {
    message: string | undefined
    token: string
}

export interface loginRequsonseData {
    code: number,
    data: dataType
}

//定义返回用户的信息

interface userInfo{
    userId:number,
    avatar:string,
    username:string,
    password:string,
    desc:string,
    roles:string[],
    buttons:string[],
    routes:string[],
    token:string
}

interface user{
    checkUser:userInfo
}

export interface userReqsonData {
    code: number,
    data: user
}